package com.jsmile.cloud.accountcenter.account.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jsmile.cloud.accountcenter.account.model.AccountInfo;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2020年06月04日 04:38:37
 */
public interface AccountInfoDao extends BaseMapper<AccountInfo> {

    @Select("select * from t_ac_account_info where user_id=#{userId} AND tenant_id=#{tenantId} limit 1")
    public AccountInfo findOneByUserIdAndTenantId(@Param("userId") Long userId, @Param("tenantId") Long tenantId);
}
